import userrequest from '@/utils/user-request'

export function getSessInfo() {
  return userrequest({
    url: '/sess/info',
    method: 'get'
  })
}

export function logout() {
  return userrequest({
    url: '/user/logout',
    method: 'get'
  })
}

export function getSessAliveTs() {
  return userrequest({
    url: '/sess/alive',
    method: 'get'
  })
}

export function getCorpList(data) {
  return userrequest({
    url: '/user/corp/list',
    method: 'get',
    params: data
  })
}

export function doSelectCorp(data) {
  return userrequest({
    url: '/user/corp/select',
    method: 'get',
    params: data
  })
}
